<!DOCTYPE html>

<html>
<head>
	<title>Nerv Widgets 3</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta> 
	
	<link rel="stylesheet" href="../../themes/nw3/form.css" type="text/css" media="all"></link>
	
	<script src="../../nw3.js" type="text/javascript"></script>
	<script src="../../plugins/form/form.js" type="text/javascript"></script>
	<script src="../../langs/it.js" type="text/javascript"></script>
</head>

<body>

<script>
// stampa titolo pagina
window.document.title = NW3.toString();
</script>


<br />
Nerv Form Plugin: Textarea
<br />
<br />

<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Textarea:'
	},
	id : 'fieldname',
	value : 'Esempio di campo textarea',
	width : '200',
	height: '70'
});
oTextarea.print();
</script>
<br />
<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Textarea:'
	},
	id : 'fieldname',
	value : 'Esempio di campo textarea',
	width : '200',
	height: '70',
	status : 'disabled'
});
oTextarea.print();
</script>
<br />
<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Write into Textarea:',
		align : 'right'
	},
	id : 'fieldname',
	value : 'Esempio di campo textarea<br />con conta parole e lettere',
	width : '200',
	height: '70',
	onkeyup : function(obj){
		oInputText.setValue(NW3.core.string.countWords(obj.getValue(), true));
		oInputText2.setValue(NW3.core.string.countChars(obj.getValue()));
	}
});
oTextarea.print();
</script>
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname',
	label : {
		text : 'Parole:'
	},
	id : 'fieldname',
	width : '30'
});
oInputText.print();
</script>
<script>
oInputText2 = new NW3.form.Text({
	name : 'fieldname',
	label : {
		text : 'Lettere:'
	},
	id : 'fieldname',
	width : '30'
});
oInputText2.print();
</script>

<br />
<br />
Events
<br />
<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Textarea:'
	},
	value : 'onBlur',
	id : 'fieldname',
	width : '200',
	height: '70',
	onblur : function(){
		alert('Running!');
	}
});
oTextarea.print();
</script>
<br />
<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Textarea:'
	},
	value : 'onMouseDown',
	id : 'fieldname',
	width : '200',
	height: '70',
	onmousedown : function(){
		alert('Running!');
	}
});
oTextarea.print();
</script>
<br />
<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Textarea:'
	},
	value : 'onKeyUp',
	id : 'fieldname',
	width : '200',
	height: '70',
	onkeyup : function(){
		alert('Running!');
	}
});
oTextarea.print();
</script>
<br />
<script>
oTextarea = new NW3.form.Textarea({
	name : 'fieldname',
	label : {
		text : 'Textarea:'
	},
	value : 'onKeyDown',
	id : 'fieldname',
	width : '200',
	height: '70',
	onkeydown : function(){
		alert('Running!');
	}
});
oTextarea.print();
</script>



</body>
</html>
